package com.myz.service.turbine;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.turbine.EnableTurbine;

/**
 * 断路器聚合监控@EnableTurbine, 不需要服务发现功能
 * 打开页面: http://turbine-hostname:port/hystrix
 * <p>
 * 要使用turbine, 记得是turbine服务ip和port
 * Cluster via Turbine (default cluster): http://turbine-hostname:port/turbine.stream
 * Cluster via Turbine (custom cluster): http://turbine-hostname:port/turbine.stream?cluster=[clusterName]
 *
 * @author maoyz0621
 */
@SpringBootApplication
@EnableTurbine
@EnableHystrixDashboard
public class ServiceTurbineApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceTurbineApplication.class, args);
    }

}
